#include <interface\event.h>
#include <iostream>

event::event(winElmt* we):  sender( we ), type( event_type_none ){}
event::~event(){}
winElmt* event::getSender(){
    return sender;
}
event_type event::getType(){
    return type;
}

const char* event::typeToString(event_type tp){
    if( tp == event_type_action_enter )     return "Action Enter";
    if( tp == event_type_action_press )     return "Action Press";
    if( tp == event_type_action_toggle )    return "Action Toggle";
    if( tp == event_type_window_resize )    return "Window Resize";
    if( tp == event_type_frame_close )      return "Frame Close";
    if( tp == event_type_frame_minimize )   return "Frame Minimize";
    if( tp == event_type_frame_lock )       return "Frame Lock";
    return "<None>";
}

Bevent::Bevent(winElmt* we,bool val):   event(we), value( val ){}
bool Bevent::getVal(){ return value; }
